<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>JSpider Library: com.spider.jspiderlibrary2.Spider.Parser Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">JSpider Library
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespacecom.html">com</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1spider.html">spider</a>      </li>
      <li class="navelem"><a class="el" href="namespacecom_1_1spider_1_1jspiderlibrary2.html">jspiderlibrary2</a>      </li>
      <li class="navelem"><a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider.html">Spider</a>      </li>
      <li class="navelem"><a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html">Parser</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">com.spider.jspiderlibrary2.Spider.Parser Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<!-- doxytag: class="com::spider::jspiderlibrary2::Spider::Parser" -->
<p><a href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html#a72ae3a543c9a4538a39e552b7118bd6d">Parser</a> (URL <a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html#aaac5fcd0aa0bdd67e4c6842d2657231d">base</a>)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html#a04eb14f6a2105866c962a0b1bdc9c568">tagHandler</a> (HTML.Tag tag)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html#ae14a442ac7232170e7db1e8f872d6f8a">handleSimpleTag</a> (HTML.Tag tag, MutableAttributeSet atributeSet, int pos)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html#a1a351dca2ed508a436546687e782d329">handleStartTag</a> (HTML.Tag t, MutableAttributeSet a, int pos)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html#a293631e270d69e91a29de14c980bc9c8">handleText</a> (char[] data, int pos)</td></tr>
<tr><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html#aa7bd808ea40da16b1e666113db1b1616">handleLink</a> (URL <a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html#aaac5fcd0aa0bdd67e4c6842d2657231d">base</a>, String str)</td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">URL&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html#aaac5fcd0aa0bdd67e4c6842d2657231d">base</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Creo un parser de HTML en funcion de la clase HTML editor empleada para parsear y detectar los links </p>

<p>Definition at line <a class="el" href="_spider_8java_source.html#l00253">253</a> of file <a class="el" href="_spider_8java_source.html">Spider.java</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a72ae3a543c9a4538a39e552b7118bd6d"></a><!-- doxytag: member="com::spider::jspiderlibrary2::Spider::Parser::Parser" ref="a72ae3a543c9a4538a39e552b7118bd6d" args="(URL base)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html#a72ae3a543c9a4538a39e552b7118bd6d">com.spider.jspiderlibrary2.Spider.Parser.Parser</a> </td>
          <td>(</td>
          <td class="paramtype">URL&#160;</td>
          <td class="paramname"><em>base</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_spider_8java_source.html#l00261">261</a> of file <a class="el" href="_spider_8java_source.html">Spider.java</a>.</p>

<p>References <a class="el" href="_spider_8java_source.html#l00257">com.spider.jspiderlibrary2.Spider.Parser.base</a>.</p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="aa7bd808ea40da16b1e666113db1b1616"></a><!-- doxytag: member="com::spider::jspiderlibrary2::Spider::Parser::handleLink" ref="aa7bd808ea40da16b1e666113db1b1616" args="(URL base, String str)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html#aa7bd808ea40da16b1e666113db1b1616">com.spider.jspiderlibrary2.Spider.Parser.handleLink</a> </td>
          <td>(</td>
          <td class="paramtype">URL&#160;</td>
          <td class="paramname"><em>base</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">String&#160;</td>
          <td class="paramname"><em>str</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">base</td><td></td></tr>
    <tr><td class="paramname">str</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_spider_8java_source.html#l00397">397</a> of file <a class="el" href="_spider_8java_source.html">Spider.java</a>.</p>

<p>References <a class="el" href="_spider_8java_source.html#l00122">com.spider.jspiderlibrary2.Spider.addURL()</a>, <a class="el" href="_spider_8java_source.html#l00419">com.spider.jspiderlibrary2.Spider.log()</a>, <a class="el" href="_spider_8java_source.html#l00055">com.spider.jspiderlibrary2.Spider.report</a>, and <a class="el" href="interfacecom_1_1spider_1_1jspiderlibrary2_1_1_i_spider_reportable.html#a10fe4e486e6bd29efaa481e7532a84e3">com.spider.jspiderlibrary2.ISpiderReportable.spiderFoundURL()</a>.</p>

<p>Referenced by <a class="el" href="_spider_8java_source.html#l00295">com.spider.jspiderlibrary2.Spider.Parser.handleSimpleTag()</a>.</p>

</div>
</div>
<a class="anchor" id="ae14a442ac7232170e7db1e8f872d6f8a"></a><!-- doxytag: member="com::spider::jspiderlibrary2::Spider::Parser::handleSimpleTag" ref="ae14a442ac7232170e7db1e8f872d6f8a" args="(HTML.Tag tag, MutableAttributeSet atributeSet, int pos)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html#ae14a442ac7232170e7db1e8f872d6f8a">com.spider.jspiderlibrary2.Spider.Parser.handleSimpleTag</a> </td>
          <td>(</td>
          <td class="paramtype">HTML.Tag&#160;</td>
          <td class="paramname"><em>tag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">MutableAttributeSet&#160;</td>
          <td class="paramname"><em>atributeSet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pos</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_spider_8java_source.html#l00295">295</a> of file <a class="el" href="_spider_8java_source.html">Spider.java</a>.</p>

<p>References <a class="el" href="_spider_8java_source.html#l00257">com.spider.jspiderlibrary2.Spider.Parser.base</a>, <a class="el" href="_spider_8java_source.html#l00397">com.spider.jspiderlibrary2.Spider.Parser.handleLink()</a>, and <a class="el" href="_spider_8java_source.html#l00272">com.spider.jspiderlibrary2.Spider.Parser.tagHandler()</a>.</p>

<p>Referenced by <a class="el" href="_spider_8java_source.html#l00357">com.spider.jspiderlibrary2.Spider.Parser.handleStartTag()</a>.</p>

</div>
</div>
<a class="anchor" id="a1a351dca2ed508a436546687e782d329"></a><!-- doxytag: member="com::spider::jspiderlibrary2::Spider::Parser::handleStartTag" ref="a1a351dca2ed508a436546687e782d329" args="(HTML.Tag t, MutableAttributeSet a, int pos)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html#a1a351dca2ed508a436546687e782d329">com.spider.jspiderlibrary2.Spider.Parser.handleStartTag</a> </td>
          <td>(</td>
          <td class="paramtype">HTML.Tag&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">MutableAttributeSet&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pos</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_spider_8java_source.html#l00357">357</a> of file <a class="el" href="_spider_8java_source.html">Spider.java</a>.</p>

<p>References <a class="el" href="_spider_8java_source.html#l00295">com.spider.jspiderlibrary2.Spider.Parser.handleSimpleTag()</a>.</p>

</div>
</div>
<a class="anchor" id="a293631e270d69e91a29de14c980bc9c8"></a><!-- doxytag: member="com::spider::jspiderlibrary2::Spider::Parser::handleText" ref="a293631e270d69e91a29de14c980bc9c8" args="(char[] data, int pos)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html#a293631e270d69e91a29de14c980bc9c8">com.spider.jspiderlibrary2.Spider.Parser.handleText</a> </td>
          <td>(</td>
          <td class="paramtype">char[]&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pos</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">data</td><td>gots the tag text </td></tr>
    <tr><td class="paramname">pos</td><td></td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_spider_8java_source.html#l00368">368</a> of file <a class="el" href="_spider_8java_source.html">Spider.java</a>.</p>

</div>
</div>
<a class="anchor" id="a04eb14f6a2105866c962a0b1bdc9c568"></a><!-- doxytag: member="com::spider::jspiderlibrary2::Spider::Parser::tagHandler" ref="a04eb14f6a2105866c962a0b1bdc9c568" args="(HTML.Tag tag)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html#a04eb14f6a2105866c962a0b1bdc9c568">com.spider.jspiderlibrary2.Spider.Parser.tagHandler</a> </td>
          <td>(</td>
          <td class="paramtype">HTML.Tag&#160;</td>
          <td class="paramname"><em>tag</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Verifico si existen tags indeseados, es decir tags que no deben tener texto comparo el tag actual con el tag indeseado, con eso seteo el flag para notificarle al handleText que el tag NO debe ser procesado </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">tag</td><td>a HTML.Tag </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_spider_8java_source.html#l00272">272</a> of file <a class="el" href="_spider_8java_source.html">Spider.java</a>.</p>

<p>Referenced by <a class="el" href="_spider_8java_source.html#l00295">com.spider.jspiderlibrary2.Spider.Parser.handleSimpleTag()</a>.</p>

</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="aaac5fcd0aa0bdd67e4c6842d2657231d"></a><!-- doxytag: member="com::spider::jspiderlibrary2::Spider::Parser::base" ref="aaac5fcd0aa0bdd67e4c6842d2657231d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">URL <a class="el" href="classcom_1_1spider_1_1jspiderlibrary2_1_1_spider_1_1_parser.html#aaac5fcd0aa0bdd67e4c6842d2657231d">com.spider.jspiderlibrary2.Spider.Parser.base</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_spider_8java_source.html#l00257">257</a> of file <a class="el" href="_spider_8java_source.html">Spider.java</a>.</p>

<p>Referenced by <a class="el" href="_spider_8java_source.html#l00295">com.spider.jspiderlibrary2.Spider.Parser.handleSimpleTag()</a>, and <a class="el" href="_spider_8java_source.html#l00261">com.spider.jspiderlibrary2.Spider.Parser.Parser()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/main/java/com/spider/jspiderlibrary2/<a class="el" href="_spider_8java_source.html">Spider.java</a></li>
</ul>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Thu Feb 16 2012 02:56:14 for JSpider Library by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
